package cn.tedu.service;

import cn.tedu.dao.CarDao;
import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//CarService的实现类
@Component
public class CarServiceImpl implements CarService {

    @Autowired
    private CarDao carDao;//service层调用dao层


    @Override
    public Car get() {
        //调用Dao层的代码
        return carDao.get();
    }
}
